package com.hliushi.mp.web;

import com.hliushi.mp.service.StationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author llhuang10
 * @date 2021/9/5 10:26
 */
@Slf4j
@Api(tags = "岗位CRUD")
@RestController
@RequestMapping("/api")
public class CRUDController {


    @Resource
    private StationService stationService;


    @ApiOperation("查询")
    @GetMapping("query")
    public ResponseEntity<String> query() {
        // todo
        return ResponseEntity.ok("查询成功");
    }

    @ApiOperation("删除")
    @DeleteMapping("delete")
    public ResponseEntity<String> delete() {
        // todo
        return ResponseEntity.ok("删除成功");
    }

    @ApiOperation("更新")
    @PutMapping("update")
    public ResponseEntity<String> update() {
        // todo
        return ResponseEntity.ok("更新成功");
    }

    @ApiOperation("插入")
    @PostMapping("insert")
    public ResponseEntity<String> insert() {
        // todo
        return ResponseEntity.ok("插入成功");
    }
}
